<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>新增辅助物料--出纳管理及开户行</title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" src="js/sorttable.js"></script>
		<script language="JavaScript" src="js/public.js"></script>
		<script type="text/javascript" src="js/validate.js"></script>
		<script type="text/javascript">
			function validate()
			{	
			var code = document.getElementById("code");
			var name = document.getElementById("name");
					
			//验证科目代码
			if(!isNotNull(code,'代码')||!f_check_number(code,'代码')||!f_check_NumLength(code,'代码'))
				return false ;
					
			//验证科目名称
			if(!(isNotNull(name,'名称')&&f_check_ZhOrNumOrLett(name,'名称'))||!f_check_NumLength(name,'名称'))
				return false ;			
		}		
		</script>
	</head>

	<body>
		<div align="center" id="info_all" style="width: 300px;">
			<div id="info_top" style="text-align:left">
				新增辅助物料--出纳管理及开户行
			</div>
			<s:form action="addAccountbank.action" method="post" onsubmit="return validate()" theme="simple">
			<div style="padding: 4px; width: 200px; margin-top: 6px;">
				<table
					style="margin-top: 10px; background: #fbfbfb; color: #403040;"
					align="center">
					<tr>
						<td width="60px">
							代码*
						</td>
						<td>
							<s:hidden name="accountbankModel.openAccountBankId"></s:hidden>
							<s:textfield name="accountbankModel.openAccountBankCode" size="12" id="code"></s:textfield>
						</td>
					</tr>
					<tr>
						<td width="60px">
							名称*
						</td>
						<td>
							
							<s:textfield name="accountbankModel.openAccountBankName" size="12" id="name"></s:textfield>
						</td>
					</tr>
					<tr>
						<td colspan="1">
							<div style="margin: 6px; text-align: right;">
								<input type="submit" value="保存"  onFocus="this.blur()"
									onmouseover="this.className='btnover'"
									onmouseout="this.className='btnout'" class="btnsize"/>

							</div>
						</td>
						<td colspan="1">
							<div style="margin: 6px; text-align: left;">

								<input type="button" value="返回" onFocus="this.blur()"
									onmouseover="this.className='btnover'"
									onmouseout="this.className='btnout'" class="btnsize" onclick="javascript:history.back()"/>
							</div>
						</td>
					</tr>
				</table>
			</div>
			</s:form>
			</div>
			<script type="text/javascript">
					getTitle('code','出纳管理及开户行');							
			</script>
	</body>
</html>


